﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro"
>
<head lang="en">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../css/public.css"/>
    <link rel="stylesheet" href="../css/style.css"/>
    <style>
        .box{
            padding: 20px;
            display: flex;
            justify-content: space-around;
        }
        li{
            line-height: 25px;
        }
    </style>
</head>
<body>

    <div th:replace="main/public :: #publicHeader"></div>

     <h2>这是主页</h2>

     <div class="box">
        <ul shiro:hasAnyRoles="ROLE_manager">
            <li><a href="level1/1">level1 - 1</a></li>
            <li><a href="level1/2">level1 - 2</a></li>
            <li><a href="level1/3">level1 - 3</a></li>
        </ul>
         <ul shiro:hasAnyRoles="ROLE_emp">
             <li><a href="level2/1">level2 - 1</a></li>
             <li><a href="level2/2">level2 - 2</a></li>
             <li><a href="level2/3">level3 - 3</a></li>
         </ul>
         <ul shiro:hasAnyRoles="ROLE_boss">
             <li><a href="level3/1">level3 - 1</a></li>
             <li><a href="level3/2">level3 - 2</a></li>
             <li><a href="level3/3">level3 - 3</a></li>
         </ul>
     </div>


</body>
</html>